package com.example.park

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.base.entity.NewsEntity
import com.example.base.entity.NewsEntityResult

class NewsAdapter:BaseQuickAdapter<NewsEntity,BaseViewHolder>(R.layout.item_news) {
    override fun convert(holder: BaseViewHolder, item: NewsEntity) {
        holder.setText(R.id.title,item.title)
        holder.setText(R.id.content,item.content)
    }
}